<template>
  <div id="app">
    <div class="nav">
      <!--<a href="/#/A">to a</a>-->
      <!--<a href="/#/B">to b</a>-->
      <!--<a href="/#/C">to c</a>-->
      <router-link to="/A">to a</router-link>
      <router-link to="/B">to b</router-link>
      <router-link to="/C">to c</router-link>
    </div>
    <router-view style="text-align: center"></router-view>
    <!--当你执行Vue.use(VueRouter)
        全局就多了一个组件:<router-view></router-view>-->
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style scoped>
  #app{
    width: 300px;
    height: 400px;
    border: 1px solid;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
  }
  .nav{
    width: 100%;
    display: flex;
  }

  a{
    flex: 1;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border: 1px solid pink;
    background: #00B7FF;
  }

</style>
